﻿using System;

namespace WeiboPlus.Service
{
    public class WeakReference<T>
    {
        WeakReference reference;
        public WeakReference(T target)
        {
            reference = new WeakReference(target);
        }
        public bool IsAlive { get { return reference.IsAlive; } }
        public T Target
        {
            get { return (T)reference.Target; }
            set { reference.Target = value; }
        }
    }
}
